package com.qijian.maindata.domain.vo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.util.List;

/**
 * 开工令备库项目对象
 *
 * @author qijian
 * @date 2023-12-25
 */

@Data
@ToString
public class ProjectBeikuListVo {

    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "备库开工令id")
    private Long projectId;

    @ApiModelProperty(value = "开工令")
    private String projectMachineNo;

    @ApiModelProperty(value = "开工令套数")
    private Integer beqQty;

    @ApiModelProperty(value = "项目号")
    private String projectNo;

    @ApiModelProperty(value = "机台号")
    private String machineNo;

    @ApiModelProperty(value = "项目名称")
    private String projectName;

    @ApiModelProperty(value = "项目创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private String projectCreateTime;

    @ApiModelProperty(value = "项目经理")
    private String nickName;

    @ApiModelProperty(value = "分配的开工令")
    List<ProjectBeikuVo> assignedList;

    @ApiModelProperty(value = "已分配的开工令的数量")
    Integer assignedCount;

}
